// 模板
const state = {
  text: '',
  searchstatus: true,
};

const mutations = {
  search(state, value) {
    console.log(value);
    if (value == '' || value == undefined) {
      state.searchstatus = false;
      return;
    }
    state.searchstatus = true;
    state.text = value;
  },
};

const actions = {};

const getters = {};

export default {
  namespaced: true,
  state,
  mutations,
  actions,
  getters,
};
